package com.spring.demo.springdemo;

import com.spring.demo.springdemo.mapper.OrderMapper;
import com.spring.demo.springdemo.mapper.UserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author RenPu
 * @Date 2024/2/18 13:53
 * @Version 1.0
 * @Description:
 **/


@Slf4j
@Component
public class UserService {

    @Autowired
    private UserMapper userMapper;

    @Autowired
    private OrderMapper orderMapper;

    public void userTest(){
      log.info("userMapper的方法被执行了=========="+userMapper.selectById());

        log.info("orderMapper的方法被执行了=========="+orderMapper.selectById());

    }

    public void test(String a,String b){
        log.info("userMapper的方法被执行了=========="+userMapper.selectById());

        log.info("orderMapper的方法被执行了=========="+orderMapper.selectById());

    }

}
